package com.otherTest.designpattern.creationalpattern.factory;


/**
 * @Description: 工厂类测试
 * 计划在不同调剂拿下创建不同的实例时可以使用工厂模式
 * @author: conceit
 * @Date: 2018/8/30 0030 16:28
 */
public class FactoryMainTest {

    /**
     * @Description: main
     * @author: conceit
     * @Date: 2018/8/30 0030 21:03
     */
    public static void main(String[] args) {
        ShapeFactory shapeFactory = new ShapeFactory();

        shapeFactory.doDraw(ShapeType.CYCLE).draw();
        shapeFactory.doDraw(ShapeType.OVAL).draw();
        shapeFactory.doDraw(ShapeType.SQUARE).draw();
    }

}
